<form class="form-horizontal" id="kuaiDiDetailForm">
    <input class="hidden" name="id" th:value="${kuaidi.id}">
    <div class="box-body">
        <div class="form-group">
            <label  class="col-sm-3 control-label">快递单号 :</label>
            <div class="col-sm-8">
                <input  name="kuaidiNo" class="form-control" readonly="readonly" min="3" require="必填项"  placeholder="" th:value="${kuaidi.kuaidiNo}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">用户名 :</label>
            <div class="col-sm-8">
                <input name="userName" class="form-control" placeholder=""  require="必填项" th:value="${kuaidi.userName}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">电话 :</label>

            <div class="col-sm-8">
                <input name="phone" class="form-control" placeholder=""  require="必填项" th:value="${kuaidi.phone}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">快递公司（字母缩写） :</label>
            <div class="col-sm-8">
                <input name="company" class="form-control" placeholder="" th:value="${kuaidi.company}">
            </div>
        </div>
    </div>
    <!-- /.box-body -->
    <div class="box-footer">
        <div class="pull-right">
            <button type="button" id="saveDetail" class="btn btn-info">确定</button>
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
        </div>
    </div>
    <!-- /.box-footer -->
</form>
<script>
    $(function () {
        $("#saveDetail").on('click', function () {
            if (doValidForm(kuaiDiDetailForm)) {
                Core.mask("#saveDetailKuaidi");
                Core.postAjax("/kuaidi/modifyKuaiDi",$("#kuaiDiDetailForm").serialize(),function (data) {
                    if (data.status == 200) {
                        Core.unmask("#saveDetailKuaidi");
                        $("#kuaidiDetailModal").modal("hide");
                        // $("#myModal").modal("hide");
                        Core.refreshTable("#table",true);
                    }
                    layer.msg(data.msg);
                })
            }
        });
    });
</script>